package com.ayf.payment.game.api.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 商户签约认证表
 */
@Getter
@Setter
@ToString
@Table(name = "g_merchant_sign")
public class MerchantSign implements Serializable {
    /**
     * 用户id
     */
    @Id
    @Column(name = "merchant_id")
    private Integer merchantId;

    /**
     * 协议渠道id
     */
    @Column(name = "sign_id")
    private Integer signId;

    /**
     * 签约状态 0-未签约,1-已签约,2签约失败，3拒签
     */
    @Column(name = "contract_status")
    private Integer contractStatus;

    /**
     * 姓名
     */
    @Column(name = "`name`")
    private String name;

    /**
     * 身份证号
     */
    @Column(name = "id_card")
    private String idCard;

    /**
     * 手机号
     */
    @Column(name = "phone")
    private String phone;

    /**
     * 邮箱
     */
    @Column(name = "email")
    private String email;

    /**
     * 签约时间
     */
    @Column(name = "contract_time")
    private Date contractTime;

    /**
     * 签约文件OSS路径
     */
    @Column(name = "contract_file_url")
    private String contractFileUrl;

    /**
     * 签署流程id
     */
    @Column(name = "contract_flow_id")
    private String contractFlowId;

    /**
     * 渠道流程id
     */
    @Column(name = "channel_flow_id")
    private String channelFlowId;

    /**
     * 渠道个人id
     */
    @Column(name = "channel_account_id")
    private String channelAccountId;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 最后更新时间
     */
    @Column(name = "last_update_time")
    private Date lastUpdateTime;

    private static final long serialVersionUID = 1L;
}